﻿@model DMHelper.Logic.PlayerLogic.PlayerCharacter

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>PlayerCharacter</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Initiative)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Initiative)
            @Html.ValidationMessageFor(model => model.Initiative)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.MaxHp)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.MaxHp)
            @Html.ValidationMessageFor(model => model.MaxHp)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CurrentHp)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CurrentHp)
            @Html.ValidationMessageFor(model => model.CurrentHp)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ClassIcon)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ClassIcon)
            @Html.ValidationMessageFor(model => model.ClassIcon)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.BaseInitiative)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.BaseInitiative)
            @Html.ValidationMessageFor(model => model.BaseInitiative)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.InitiativeDie)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.InitiativeDie)
            @Html.ValidationMessageFor(model => model.InitiativeDie)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Active)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Active)
            @Html.ValidationMessageFor(model => model.Active)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back Menu", "Index", "Menu")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
